//
//  AddPondModel.h
//  YuTang
//
//  Created by 葛悦彣 on 2024/7/22.
//

#import <Foundation/Foundation.h>
#import "TemplateFoundDetailsModel.h"
#import "CombinedPunchModel.h"

NS_ASSUME_NONNULL_BEGIN
@class addPondModelListModel;
@interface AddPondModel : NSObject<NSCoding>


///池塘面积(亩)
@property (nonatomic ,strong) NSString * area;

///是否允许批量打卡;1:允许 0:不允许
@property (nonatomic ,assign) NSInteger  batchFlag;

///养殖周期(天)
@property (nonatomic ,strong) NSString * breedCycle;

///养殖种类id
@property (nonatomic ,strong) NSString * breedTypeId;
@property (nonatomic ,strong) NSString * breedTypeName;

///所属类型编码 0：衍生 1：养殖
@property (nonatomic ,assign) int typeCode;
///负责人姓名
@property (nonatomic ,strong) NSString * directorName;

///负责人电话
@property (nonatomic ,strong) NSString * directorPhone;

///工作首次执行日期
@property (nonatomic ,strong) NSString * executeDate;

///登录养殖场
@property (nonatomic ,strong) NSString * orgCode;

///池塘照片;逗号分割,最多3张
@property (nonatomic ,strong) NSString * pictureImg;
@property (nonatomic ,strong) NSMutableArray<NSString *> * pictureImgArray;
@property (nonatomic ,strong) NSMutableArray<NSString *> * TJpictureImgArray;
@property (nonatomic ,strong) NSString * pictureImgStr;
@property (nonatomic ,strong) NSString * TJpictureImgStr;

///工作模板id
@property (nonatomic ,strong) NSString * templateId;
@property (nonatomic ,assign) NSString * templateVersionNumber;

///1:公共 2：个人
@property (nonatomic ,strong) NSString * templateType;
@property (nonatomic ,strong) NSString * templateName;

///池塘类型id
@property (nonatomic ,strong) NSString * typeId;
@property (nonatomic ,strong) NSString * typeName;
///是否是衍生类是的就少3个参数
@property (nonatomic ,assign)  BOOL isYSL;

///名称编组产量
@property (nonatomic ,strong) NSMutableArray <addPondModelListModel *>* addPondModelList;
///模板任务步骤详情
@property (nonatomic ,strong) NSMutableArray <TemplateFoundDetailsStepModelListModel *>* stepModelList;


///额外数据
///当前的是否是最后一个步骤,用来判断按钮显示文本
@property (nonatomic ,assign) BOOL isLastModel;
///选中另一个步骤
- (void)setSeledModel:(TemplateFoundDetailsStepModelListModel *)model;
///选中的model
@property (nonatomic ,strong) TemplateFoundDetailsStepModelListModel * seledModel;

///提交时的提示文本
- (NSString *)TjAPiHUDString;
///提交字典
- (NSMutableDictionary *)TjDict;
@end

@interface addPondModelListModel : NSObject<NSCoding>

///预计产量(斤)
@property (nonatomic ,strong) NSString * expectYield;

///池塘名称
@property (nonatomic ,strong) NSString * name;

///池塘编组id
@property (nonatomic ,strong) NSString * tissueId;
@property (nonatomic ,strong) NSString * tissueName;
///池塘类型名称
@property (nonatomic ,strong) NSString * typeName;


///提交时的提示文本
- (NSString *)TjAPiHUDString;
///提交字典
- (NSMutableDictionary *)TjDict;

@end
///池塘类型
@interface pondTypeModel : NSObject
///创建时间
@property (nonatomic ,strong) NSString * createTime;
///
@property (nonatomic ,strong) NSString * name;
///所属类型编码    
@property (nonatomic ,strong) NSString * typeCode;
///所属类型名称
@property (nonatomic ,strong) NSString * typeName;

///主键 
@property (nonatomic ,strong) NSString * ID;


@end
@interface AddXGPondModel : AddPondModel

///    养殖场
@property (nonatomic ,strong) NSString * breed;

///预计产量(斤)
@property (nonatomic ,strong) NSString * expectYield;
@property (nonatomic ,strong) NSString * ID;
///池塘名称
@property (nonatomic ,strong) NSString * name;
///池塘照片外链;逗号分割,最多3张
@property (nonatomic ,strong) NSString * pictureImgUrl;
//@property (nonatomic ,strong) NSMutableArray<NSString *> * XGpictureImgArray;
//@property (nonatomic ,strong) NSMutableArray<NSString *> * XGTJpictureImgArray;

@property (nonatomic ,strong) NSString * tissueId;
@property (nonatomic ,strong) NSString * tissueName;

///是否是全部池塘
@property (nonatomic ,assign) BOOL isAll;
///是否有分组
@property (nonatomic ,assign) BOOL isGroup;
///是否是多池塘的下一步,作为标记
@property (nonatomic ,assign) BOOL isNext;

///工作模板是否重新选择 0:否 1：是
@property (nonatomic ,assign) int ifReselectTemplate;

@property (nonatomic ,assign) CGFloat XGHeaderViewH;

@property (nonatomic ,assign) CGFloat XGFooterViewH;
@property (nonatomic ,assign) CGFloat XGCellH;

///提交时的提示文本
- (NSString *)XGTjAPiHUDString;
///提交字典
- (NSMutableDictionary *)XGTjDict;
@end
NS_ASSUME_NONNULL_END
